// labelvariables.do


capture label var c_int_t_n_div_gm "$\delta^c \times z\_{ni}^{(1)}$"
capture label var c_int_t_n_div_f "$\delta^c \times z\_{ni}^{(2)}$"
capture label var c_int_n_div_gm "$\delta^c \times z\_{ni}^{(1)}$"
capture label var c_int_n_div_f "$\delta^c \times z\_{ni}^{(2)}$"
capture label var int_n_div_gm "$\delta^c \times z\_{ni}^{(1)}$"
capture label var int_n_div_f "$\delta^c \times z\_{ni}^{(2)}$"
capture label var c_intf_gm "\$FINDEV^c \times z\_{ni}^{(1)}$"
capture label var c_intf_f "\$FINDEV^c \times z\_{ni}^{(2)}$"
capture label var c_int_lgdpc_gm "$\log GDPC^c \times z\_{ni}^{(1)}$"
capture label var c_int_lgdpc_f "$\log GDPC^c \times z\_{ni}^{(2)}$"
capture label var c_int_usio "$\delta^c \times X\_{ni}^{US}/X\_n^{US}$"

capture label var c_int_usio_div_gm "$\delta^c \times u\_{ni}^{(1)}$"
capture label var c_int_usio_div_f "$\delta^c \times u\_{ni}^{(2)}$"
capture label var c_intf_pgm "\$FINDEV^c \times u\_{ni}^{(1)}$"
capture label var c_intf_pf "\$FINDEV^c \times u\_{ni}^{(2)}$"
capture label var c_int_lgdpc_pgm "$\log GDPC^c \times u\_{ni}^{(1)}$"
capture label var c_int_lgdpc_pf "$\log GDPC^c \times u\_{ni}^{(2)}$"

capture label var  c_int_qt2_f "$\mathbf{1}\left(\delta^c \in \text{2nd Quintile }\right)\times z_{ni}$"
capture label var  c_int_qt3_f "$\mathbf{1}\left(\delta^c \in \text{3rd Quintile }\right)\times z_{ni}$"
capture label var  c_int_qt4_f "$\mathbf{1}\left(\delta^c \in \text{4th Quintile }\right)\times z_{ni}$"
capture label var  c_int_qt5_f "$\mathbf{1}\left(\delta^c \in \text{5th Quintile }\right)\times z_{ni}$"

capture label var  c_int_q2_f "$\mathbf{1}\left(\delta^c \in \text{2nd Quintile }\right)\times z_{ni}$"
capture label var  c_int_q3_f "$\mathbf{1}\left(\delta^c \in \text{3rd Quintile }\right)\times z_{ni}$"
capture label var  c_int_q4_f "$\mathbf{1}\left(\delta^c \in \text{4th Quintile }\right)\times z_{ni}$"
capture label var  c_int_q5_f "$\mathbf{1}\left(\delta^c \in \text{5th Quintile }\right)\times z_{ni}$"

capture label var  c_int_q3f_delta "$\mathbf{1}\left(z_{ni}\in \text{3rd Quintile }\right)\times \delta^c$"
capture label var  c_int_q4f_delta "$\mathbf{1}\left(z_{ni}\in \text{4th Quintile }\right)\times \delta^c$"
capture label var  c_int_q5f_delta "$\mathbf{1}\left(z_{ni}\in \text{5th Quintile }\right)\times \delta^c$"

capture label var c_int_rauch_con "$\delta^c \times r_i^{\text{con}}$"
capture label var c_int_rauch_lib "$\delta^c \times r_i^{\text{lib}}$"

capture label var c_int_new_con "$\delta^c \times r_i^{\text{con}} \times \text{Nunn}^{\text{con}}_n$"
capture label var c_int_new_lib "$\delta^c \times r_i^{\text{lib}} \times \text{Nunn}^{\text{lib}}_n$"

capture label var c_int3_gm_lib "$\delta^c \times z\_{ni}^{(1)} \times r_n^{\text{lib}}$"
capture label var c_int3_f_lib "$\delta^c \times z\_{ni}^{(2)} \times r_n^{\text{lib}}$"

capture label var c_int_n_div_gm_sellerptf  "$\delta^c \times \tilde{z}\_{ni}^{(1)}$"
capture label var c_int_n_div_f_sellerptf "$\delta^c \times \tilde{z}\_{ni}^{(2)}$"
capture label var c_int_casesPerLinkJpn "$\delta^c \times  \text{(Cases / Links in Japan)}_{ni}$"

cap label var c_int_n_div_gm_cap "$\delta^c \times z\_{ni}^{(1)} \times (K/Y)\_{n}^{US}$"
cap label var c_int_n_div_f_cap "$\delta^c \times z\_{ni}^{(2)} \times (K/Y)\_{n}^{US}$"
cap label var c_int_n_div_gm_rnd "$\delta^c \times z\_{ni}^{(1)} \times (R\&D)\_{n}^{US}$"
cap label var c_int_n_div_f_rnd "$\delta^c \times z\_{ni}^{(2)} \times (R\&D)\_{n}^{US}$"

cap label var c_control_gm "$\delta^c \times \sqrt{(\# \text{firms in } n)(\# \text{firms in } i)} $"
cap label var c_control_f "$\delta^c \times (\# \text{firm relationships between i and n}) $"

cap label var c_int_n_div_sales  "$\delta^c \times z\_{ni}^{(3)}$"
cap label var c_int_n_div_usiot "$\delta^c \times z\_{ni}^{(4)}$"
cap label var c_intf3  "\$FINDEV^c \times z\_{ni}^{(3)}$"
cap label var c_int_lgdpc3 "$\log GDPC^c \times z\_{ni}^{(3)}$"
cap label var c_intf4  "\$FINDEV^c \times z\_{ni}^{(4)}$"
cap label var c_int_lgdpc4 "$\log GDPC^c \times z\_{ni}^{(4)}$"

cap label var c_intf_rauch_con "\$FINDEV^c \times r_i^{\text{con}}$"
cap label var c_intf_rauch_lib "\$FINDEV^c \times r_i^{\text{lib}}$"
cap label var c_int_lgdpc_rauch_con "$\log GDPC^c \times r_i^{\text{con}}$"
cap label var c_int_lgdpc_rauch_lib "$\log GDPC^c \times r_i^{\text{lib}}$"

// ref 3.2
cap label var c_int_z1_up "$\delta^c \times z\_{i}^{(1)}$"
cap label var c_int_z1_down "$\delta^c \times z\_{n}^{(1)}$"
cap label var c_int_z2_up "$\delta^c \times z\_{i}^{(2)}$"
cap label var c_int_z2_down "$\delta^c \times z\_{n}^{(2)}$"
cap label var c_intf_z1_up "\$FINDEV^c \times z\_{i}^{(1)}$"
cap label var c_intf_z1_down "\$FINDEV^c \times z\_{n}^{(1)}$"
cap label var c_intf_z2_up "\$FINDEV^c \times z\_{i}^{(2)}$"
cap label var c_intf_z2_down "\$FINDEV^c \times z\_{n}^{(2)}$"
cap label var c_int_lgdpc_z1_up "$\log GDPC^c \times z\_{i}^{(1)}$"
cap label var c_int_lgdpc_z1_down "$\log GDPC^c \times z\_{n}^{(1)}$"
cap label var c_int_lgdpc_z2_up "$\log GDPC^c \times z\_{i}^{(2)}$"
cap label var c_int_lgdpc_z2_down "$\log GDPC^c \times z\_{n}^{(2)}$"	

foreach q in 2 3 4 5 {
capture label var  d_int_q`q'_z1_up "$\mathbf{1}\left(\delta^c \in \text{`q'. Quintile }\right)\times z_{i}^{(1)}$"
capture label var  d_int_q`q'_z1_down "$\mathbf{1}\left(\delta^c \in \text{`q'. Quintile }\right)\times z_{n}^{(1)}$"
capture label var  d_int_q`q'_z2_up "$\mathbf{1}\left(\delta^c \in \text{`q'. Quintile }\right)\times z_{i}^{(2)}$"
capture label var  d_int_q`q'_z2_down "$\mathbf{1}\left(\delta^c \in \text{`q'. Quintile }\right)\times z_{n}^{(2)}$"
}

cap label var n_div_gm "$ z\_{i}^{(1)}$"
cap label var n_div_f "$ z\_{i}^{(2)}$"
cap label var upstreamness "$\text{Upstreamness}\_{i}$"
cap label var upstreamness_ij "$\text{Upstreamness}\_{ni}$"
cap label var is "$\text{InputSimilarity}\_{ni}$"
cap label var cap_intensity "$(K/Y)\_{i}^{US}$"
cap label var rnd_intensity "$(R\&D)\_{i}^{US}$"
cap label var fraction_cd "$(L^H/L)\_{i}^{US}$"

